package cl.metlife.contentstore;

import org.junit.Test;
import static junit.framework.Assert.assertNotNull;

import java.sql.Connection;


public class ContentDAOTest {

    ContentDAO content = new ContentDAO();

    @Test
    public void testGetCustomConnection01() throws Exception {

        Connection connection = content.getCustomConnection();

        assertNotNull(connection);
    }

    @Test
    public void testPersist01() throws Exception {

        content.persist("12345", "Test Contenido");

    }

    @Test
    public void testGetContent() throws Exception {

        String key = "13245";

        System.out.println(content.getContent(key));

    }

}
